package IO_;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Writer字符列写文件
 */
public class Io08 {
    public static void main(String[] args) {
        try(Writer writer=new FileWriter("./test.exe")){
           String s="好好学习，天天向上";
           writer.write(s);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
